RasterRenderer

Constructors

this
this(ShumateRasterRenderer* shumateRasterRenderer, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(DataSource dataSource)

Creates a new [class@RasterRenderer] that uses the given data source.

this
this(string urlTemplate)

Creates a new [class@RasterRenderer] that fetches tiles from the given URL using a [class@TileDownloader] data source.

this
this(string id, string name, string license, string licenseUri, uint minZoom, uint maxZoom, uint tileSize, ShumateMapProjection projection, DataSource dataSource)

Creates a new [class@RasterRenderer] with the given details and a data source.

this
this(string id, string name, string license, string licenseUri, uint minZoom, uint maxZoom, uint tileSize, ShumateMapProjection projection, string urlTemplate)

Creates a new [class@RasterRenderer] with the given details and a data source.

Members

Functions

getRasterRendererStruct
ShumateRasterRenderer* getRasterRendererStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

shumateRasterRenderer
ShumateRasterRenderer* shumateRasterRenderer;

the main Gtk struct

Inherited Members

From MapSource

shumateMapSource
ShumateMapSource* shumateMapSource;

the main Gtk struct

getMapSourceStruct
ShumateMapSource* getMapSourceStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
fillTileAsync
void fillTileAsync(Tile tile, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Asynchronous version of shumate_map_source_fill_tile().

fillTileFinish
bool fillTileFinish(AsyncResultIF result)

Gets the success value of a completed shumate_map_source_fill_tile_async() operation.

getColumnCount
uint getColumnCount(uint zoomLevel)

Gets the number of tiles in a column at this zoom level for this map source.

getId
string getId()

Gets map source's id.

getLatitude
double getLatitude(double zoomLevel, double y)

Gets the latitude corresponding to this y position in the map source's projection.

getLicense
string getLicense()

Gets map source's license.

getLicenseUri
string getLicenseUri()

Gets map source's license URI.

getLongitude
double getLongitude(double zoomLevel, double x)

Gets the longitude corresponding to this x position in the map source's projection.

getMaxZoomLevel
uint getMaxZoomLevel()

Gets map source's maximum zoom level.

getMetersPerPixel
double getMetersPerPixel(double zoomLevel, double latitude, double longitude)

Gets meters per pixel at the position on the map using this map source's projection.

getMinZoomLevel
uint getMinZoomLevel()

Gets map source's minimum zoom level.

getName
string getName()

Gets map source's name.

getProjection
ShumateMapProjection getProjection()

Gets map source's projection.

getRowCount
uint getRowCount(uint zoomLevel)

Gets the number of tiles in a row at this zoom level for this map source.

getTileSize
uint getTileSize()

Gets map source's tile size.

getTileSizeAtZoom
double getTileSizeAtZoom(double zoomLevel)

Gets the apparent size of the map tiles at the given fractional zoom level.

getX
double getX(double zoomLevel, double longitude)

Gets the x position on the map using this map source's projection. (0, 0) is located at the top left.

getY
double getY(double zoomLevel, double latitude)

Gets the y position on the map using this map source's projection. (0, 0) is located at the top left.

setId
void setId(string id)

Sets the map source's id.

setLicense
void setLicense(string license)

Sets the map source's license.

setLicenseUri
void setLicenseUri(string licenseUri)

Sets the map source's license URI.

setMaxZoomLevel
void setMaxZoomLevel(uint zoomLevel)

Sets the map source's maximum zoom level.

setMinZoomLevel
void setMinZoomLevel(uint zoomLevel)

Sets the map source's minimal zoom level.

setName
void setName(string name)

Sets the map source's name.

setProjection
void setProjection(ShumateMapProjection projection)

Sets the map source's projection.

setTileSize
void setTileSize(uint tileSize)

Sets the map source's tile size.

Meta